module.exports = app => {
    const { BOOLEAN, STRING, INTEGER, DATE } = app.Sequelize;


    const Act = app.model.define('act', {
        id: {
            type: INTEGER,
            primaryKey: true,
            autoIncrement: true,
        },
        member: STRING(500),
        type: STRING(50),
        title: STRING(50),
        vote: {
            type: INTEGER,
            defaultValue: 0
        },
        desc: STRING(50),
        created_at: DATE,
        updated_at: DATE
    });


    return Act;
};